package interpreter.fromKanYun;

public class Test {
    public static void main(String[] args) {
        AddOperation addOperation = new AddOperation();
        MinusOperation minusOperation = new MinusOperation();

        double addResult = addOperation.interpreter(new Entity(20,30));
        double minusResult = minusOperation.interpreter(new Entity(20,30));

        System.out.println("addResult = " + addResult);
        System.out.println("minusResult = " + minusResult);

        double mixResult = new AddOperation().interpreter(
            new Entity(
                addOperation.interpreter(new Entity(22,33)),
                minusOperation.interpreter(new Entity(22,33))
                )
        );
        System.out.println("mixResult = " + mixResult);
    }
}
